package com.xiaozhi.controller.entitycontroller;

import com.xiaozhi.entity.Discussion;
import com.xiaozhi.entity.Reply;
import com.xiaozhi.mapper.ReplyMapper;
import com.xiaozhi.service.ReplyService;
import com.xiaozhi.utils.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 烟尘
 * @since 2023-03-15
 */
@RestController
@RequestMapping("/reply")
public class ReplyController {
    @Autowired
private ReplyService replyService;
    @ApiOperation("插入回复内容")
    @PostMapping ("/addreply")
    public void recommendContent(@RequestBody Reply reply){
        System.out.println(reply);
        replyService.save(reply);
    }
}
